<script setup lang="ts">
defineProps(['mapData']);
</script>

<template>
  <el-row :gutter="10" class="valve-info">
    <el-col :span="24">
      <el-descriptions :column="1" class="largeScreen-descriptions">
        <el-descriptions-item label="阀门类型">{{ mapData?.type || '-' }}</el-descriptions-item>
        <el-descriptions-item label="设计压力">{{ mapData?.pa || '-' }}</el-descriptions-item>
        <el-descriptions-item label="规格">{{ mapData?.gui || '-' }}</el-descriptions-item>
        <el-descriptions-item label="建设日期">{{ mapData?.proTime || '-' }}</el-descriptions-item>
        <el-descriptions-item label="阀门状态">
          <span :style="{ color: mapData?.status == '1' ? '#67C23A' : '#F56C6C' }">
            {{ mapData?.status == '1' ? '未关闭' : '已关闭' }}
          </span>
        </el-descriptions-item>
      </el-descriptions>
    </el-col>
  </el-row>
</template>

<style scoped lang="scss">
.valve-info {
  width: 300px;
}
</style>
